<%@ page language="java" contentType="text/html; charset=EUC-KR"
	pageEncoding="EUC-KR"%>
	<%@ page import="com.renren.api.client.utils.*" %>
<%
	int appId = Integer.parseInt(ConfigUtil.getValue("renrenAppID"));
	request.setAttribute("appId", appId);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<script type="text/javascript" src="js/renren_js_sdk/renren.js"></script>
<script type="text/javascript">
	var uiOpts = {
		url : "http://graph.renren.com/oauth/authorize",
		display : "iframe",
		params : {
			"scope":"read_user_photo,read_user_album",
			"response_type" : "token",
			"client_id" : "${requestScope.appId}"
		},
		onSuccess : function(r) {
			top.location = "http://apps.renren.com/canvas_pivot/index";
		},
		onFailure : function(r) {
		}
	};
	window.onload = function() {
		Renren.ui(uiOpts);
	};
</script>
</head>
<body>this is auth page...
</body>
</html>